package com.college.mapper;

import com.college.entity.StudentInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 学生信息 Mapper 接口
 * </p>
 *
 * @author yoki
 * @since 2024-05-29
 */
@Mapper
public interface StudentInfoMapper extends BaseMapper<StudentInfo> {
    @Select("SELECT count(id) from student_info where class_number = #{classNumber}; ")
    Integer getStudentCountByClassNumber(String classNumber);
}
